/* 覆盖 Element Plus 的主题色 */
:root {
  --el-color-primary: #e57373;
  --el-color-primary-light-3: #ffcdd2;
  --el-color-primary-light-5: #ffebee;
  --el-color-primary-light-7: #ffebee;
  --el-color-primary-light-8: #ffebee;
  --el-color-primary-light-9: #ffebee;
  --el-color-primary-dark-2: #d32f2f;
}

/* 按钮样式 */
.el-button--primary {
  --el-button-bg-color: var(--el-color-primary);
  --el-button-border-color: var(--el-color-primary);
  --el-button-hover-bg-color: var(--el-color-primary-dark-2);
  --el-button-hover-border-color: var(--el-color-primary-dark-2);
  background-color: var(--el-color-primary) !important;
  border-color: var(--el-color-primary) !important;
}

.el-button--primary:hover,
.el-button--primary:focus {
  background-color: var(--el-color-primary-dark-2) !important;
  border-color: var(--el-color-primary-dark-2) !important;
}

/* 链接按钮样式 */
.el-button--primary.is-link {
  color: var(--el-color-primary) !important;
}

.el-button--primary.is-link:hover,
.el-button--primary.is-link:focus {
  color: var(--el-color-primary-dark-2) !important;
}

/* 文字按钮样式 */
.el-button--primary.is-text {
  color: var(--el-color-primary) !important;
}

.el-button--primary.is-text:hover,
.el-button--primary.is-text:focus {
  color: var(--el-color-primary-dark-2) !important;
}

/* 下拉菜单样式 */
.el-dropdown-menu__item:focus,
.el-dropdown-menu__item:not(.is-disabled):hover {
  background-color: var(--el-color-primary-light-9);
  color: var(--el-color-primary);
}

/* 标签页样式 */
.el-tabs__item.is-active {
  color: var(--el-color-primary);
}

.el-tabs__active-bar {
  background-color: var(--el-color-primary);
}

/* 输入框焦点样式 */
.el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px var(--el-color-primary) inset;
}

/* 单选框样式 */
.el-radio__input.is-checked .el-radio__inner {
  background-color: var(--el-color-primary);
  border-color: var(--el-color-primary);
}

.el-radio__input.is-checked + .el-radio__label {
  color: var(--el-color-primary);
}

/* 复选框样式 */
.el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: var(--el-color-primary);
  border-color: var(--el-color-primary);
}

.el-checkbox__input.is-checked + .el-checkbox__label {
  color: var(--el-color-primary);
}

/* 开关样式 */
.el-switch.is-checked .el-switch__core {
  background-color: var(--el-color-primary);
  border-color: var(--el-color-primary);
}

/* 分页样式 */
.el-pagination.is-background .el-pager li:not(.is-disabled).is-active {
  background-color: var(--el-color-primary);
}

/* 表格样式 */
.el-table__row.current-row > td {
  background-color: var(--el-color-primary-light-9);
}

/* 加载样式 */
.el-loading-spinner .path {
  stroke: var(--el-color-primary);
}

/* 消息提示样式 */
.el-message--success {
  --el-message-bg-color: var(--el-color-primary-light-9);
  --el-message-border-color: var(--el-color-primary-light-8);
  --el-message-text-color: var(--el-color-primary);
}

/* 对话框样式 */
.el-dialog__headerbtn:hover .el-dialog__close {
  color: var(--el-color-primary);
} 